package com.situ.layuimini.controller;

import com.situ.layuimini.service.IMenuService;
import com.situ.layuimini.vo.InitMenuVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/")
public class IndexController {

    @Autowired
    private IMenuService menuService;


    @GetMapping(value = "/init")
    public InitMenuVO init() {
        return menuService.init();
    }

}
